package xyz.lxbq.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.lxbq.mapper.MajorMapper;
import xyz.lxbq.pojo.Major;
import xyz.lxbq.service.MajorService;

import java.util.List;

/**
 * @author XuHu
 * @version 1.0
 * @date 2020/10/19 13:43
 */
@Service
public class MajorServiceImpl implements MajorService {


    @Autowired
    MajorMapper majorMapper;



    @Override
    public List<Major> getMajor(int pagestart, int pageSize) {
        return majorMapper.getMajor(pagestart,pageSize);
    }

    @Override
    public int addMajor(Major major) {
        return majorMapper.addMajor(major);
    }

    @Override
    public int countMajor() {
        return majorMapper.countMajor();
    }

    @Override
    public int deleteById(int id) {
        return majorMapper.deleteById(id);
    }

    @Override
    public List<Major> getName() {
        return majorMapper.getName();
    }


}
